﻿#region File and License Information
/*
<File>
	<License>
		Copyright © 2009 - 2017, Daniel Vaughan. All rights reserved.
		This file is part of Calcium (http://calciumsdk.net), 
		which is released under the MIT License.
		See file /Documentation/License.txt for details.
	</License>
	<CreationDate>2009-05-09 20:45:03Z</CreationDate>
</File>
*/
#endregion

using System.IO;
using System.Text;

namespace Outcoder.IO
{
	public static class FileSystem
	{
		public static void WriteFile(string fileName, string content, Encoding encoding)
		{
			using (var writer = new StreamWriter(fileName, false, encoding))
			{
				writer.Write(content);
			}
		}

		public static void WriteFile(string fileName, string content)
		{
			WriteFile(fileName, content, Encoding.UTF8);
		}
	}
}
